package ooday01;
//学生类
public class Student {
    //成员变量
    String name;
    int age;
    String address;
    //(行为)方法
    void study(){
        System.out.println(this.name+"你大爷我还在学习");
    }
    void sayHi(){
        System.out.println("大家好，我叫"+this.name+",今年"+this.age+"岁了，家住"+this.address);
    }

    //构造方法
    Student(String name1,int age1,String address1){
        this.name = name1;
        this.age = age1;
        this.address = address1;
    }
    Student(){

    }
}
